﻿using Step4.Unit7.Model.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Step4.Unit7.Service.Dto
{
    public class AccountBo
    {

        /// <summary>
        /// 债务人Id
        /// </summary>
        [Required(ErrorMessage ="请选择债务人")]
        [Display(Name ="债务人")]
        public long DebtorId { get; set; }
        /// <summary>
        /// 银行名称
        /// </summary>
        [Required(ErrorMessage ="请选择银行")]
        [Display(Name = "银行")]
        public string? BankName { get; set; }
        ///// <summary>
        ///// 案件状态
        ///// </summary>
        //[Required(ErrorMessage = "请选择案件状态")]
        //[Display(Name = "案件状态")]
        //public AccountStateEnum AccountState { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        [Required(ErrorMessage ="请输入业务员")]
        [Display(Name ="业务员")]
        public string? SaleMan { get; set; }
        /// <summary>
        /// 欠款金额
        /// </summary>
        [Display(Name ="欠款金额")]
        [Required(ErrorMessage ="请输入欠款金额")]
        [Range(1,int.MaxValue,ErrorMessage ="请输入整数")]
        public int DebtorMoney { get; set; }
    }
}
